.class Lcom/donson/momark/view/view/F;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/donson/momark/view/view/n;


# direct methods
.method constructor <init>(Lcom/donson/momark/view/view/n;)V
    .locals 0

    iput-object p1, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v2, 0x1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v0}, Lcom/donson/momark/view/view/n;->d(Lcom/donson/momark/view/view/n;)Landroid/webkit/WebView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoForward()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v0}, Lcom/donson/momark/view/view/n;->d(Lcom/donson/momark/view/view/n;)Landroid/webkit/WebView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebView;->goForward()V

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v0}, Lcom/donson/momark/view/view/n;->a(Lcom/donson/momark/view/view/n;)Landroid/content/Context;

    move-result-object v0

    const-string v1, "\u5bf9\u4e0d\u8d77\uff0c \u60a8\u73b0\u5728\u4e0d\u80fd\u524d\u8fdb\u3002"

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v0}, Lcom/donson/momark/view/view/n;->d(Lcom/donson/momark/view/view/n;)Landroid/webkit/WebView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoBack()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v0}, Lcom/donson/momark/view/view/n;->d(Lcom/donson/momark/view/view/n;)Landroid/webkit/WebView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebView;->goBack()V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v0}, Lcom/donson/momark/view/view/n;->a(Lcom/donson/momark/view/view/n;)Landroid/content/Context;

    move-result-object v0

    const-string v1, "\u5bf9\u4e0d\u8d77\uff0c \u60a8\u73b0\u5728\u4e0d\u80fd\u540e\u9000\u3002"

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v0}, Lcom/donson/momark/view/view/n;->d(Lcom/donson/momark/view/view/n;)Landroid/webkit/WebView;

    move-result-object v0

    iget-object v1, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v1}, Lcom/donson/momark/view/view/n;->d(Lcom/donson/momark/view/view/n;)Landroid/webkit/WebView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_3
    new-instance v0, Lcom/donson/momark/activity/AdActivity;

    invoke-direct {v0}, Lcom/donson/momark/activity/AdActivity;-><init>()V

    iget-object v1, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v1}, Lcom/donson/momark/view/view/n;->a(Lcom/donson/momark/view/view/n;)Landroid/content/Context;

    move-result-object v1

    const/4 v2, 0x0

    iget-object v3, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v3}, Lcom/donson/momark/view/view/n;->e(Lcom/donson/momark/view/view/n;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v2, v3}, Lcom/donson/momark/activity/AdActivity;->startDownActivity(Landroid/content/Context;ZLjava/lang/String;)V

    goto :goto_0

    :pswitch_4
    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-virtual {v0}, Lcom/donson/momark/view/view/n;->e()V

    iget-object v0, p0, Lcom/donson/momark/view/view/F;->a:Lcom/donson/momark/view/view/n;

    invoke-static {v0}, Lcom/donson/momark/view/view/n;->a(Lcom/donson/momark/view/view/n;)Landroid/content/Context;

    move-result-object p0

    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method
